package com.kuang.service;

import com.kuang.dao.UserDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @author zjmi
 */
public class UserServiceImpl implements UserService{

    public UserDao userDao;

   /**利用set进行动态值的注入*/
    public void setUserDao(UserDao userDao) {
        this.userDao = userDao;
    }

    @Override
    public void getUser() {
        userDao.getuser();
    }
}
